package com.weilan.blog.picture.service;

import com.weilan.blog.base.service.SuperService;
import com.weilan.blog.picture.entity.File;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @description: 文件服务接口
 * @author: 孙 峰
 * @time: 2020/10/10 13:59
 */
public interface FileService extends SuperService<File> {
    /**
     * 多文件上传
     *
     * @param path
     * @param request
     * @param fileList
     * @return
     */
    String uploadImages(String path, HttpServletRequest request, List<MultipartFile> fileList, Map<String, String> qiNiuConfig);

    /**
     *
     * @param fileIds
     * @param fileSegmentation
     * @return
     */
    String getPicture(String fileIds, String fileSegmentation);
    /**
     * 多文件上传
     *
     * @param path
     * @param request
     * @param filedatas
     * @return
     */
    String uploadImgs(String path, HttpServletRequest request, List<MultipartFile> filedatas, Map<String, String> qiNiuConfig);
}
